package csdn.object;

public class Test2 {
    public static void main(String[] args) {
        Integer s=new Integer(10);
        Integer s2=new Integer(10);
        System.out.println( s==s2 );

        Integer n1=100;
        Integer n2=100;
        System.out.println( n1==n2 );

        Integer m1=128;
        Integer m2=128;
        System.out.println( m1==m2 );
    }
}

/**
 * public static Integer valueOf(int i) {
 *         if (i >= IntegerCache.low && i <= IntegerCache.high)
 *             return IntegerCache.cache[i + (-IntegerCache.low)];
 *         return new Integer(i);
 *     }
 */